package basic.arch.component.lock.local;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class LockSettings {

    /**
     * 系统名称
     */
    @Value("${lock.systemName}")
    private String systemName;

    /**
     * 单机等待阈值 超过阈值服务降级，默认1000
     */
    @Value("${lock.singleWaitThreshold}")
    private int singleWaitThreshold = 1000;

    public String getSystemName() {
        return systemName;
    }

    public void setSystemName(String systemName) {
        this.systemName = systemName;
    }

    public int getSingleWaitThreshold() {
        return singleWaitThreshold;
    }

    public void setSingleWaitThreshold(int singleWaitThreshold) {
        this.singleWaitThreshold = singleWaitThreshold;
    }
}
